﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class supply2 : Form
    {
        public supply2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string GoodsID = textBox1.Text;
            string GName = textBox2.Text;
            string UnitPrice = textBox3.Text;

            string sql = string.Format($"insert into Provider(PName,Phone,Address) values('{GoodsID}','{GName}','{UnitPrice}')");
            DBHelper.NoSelect(sql);
            MessageBox.Show("添加成功");
            this.Hide();
        }
    }
}
